package com.boot.bean;

import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by xuxiaobao on 2017/8/9.
 */
public class Person {
    @NotBlank(message = "名字不能为空")
    String name;
    @NotBlank(message = "性别不能为空")
    String sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
